const puppeteer = require('puppeteer');

(async () => {
    const browser = await puppeteer.launch({headless: false});
    const page = await browser.newPage();
    // let lis = document.querySelectorAll('.row .text img');
    // let content= await page.$eval('', el => el.innerText);
    await page.goto('http://jandan.net/ooxx/page-2#comments',{
        waitUntil: 'networkidle2'            // 页面加载完毕
    });


    const result = await page.evaluate(()=>{
        var $ = window.$;
        var items = $('.text img');

        return items

    });

    console.log(result)







    // await page.goto(targetLink);
    // browser.close();         // 关闭浏览器
})()